package cn.edu.nuc.crm.service.interfaces;

import java.util.List;

import cn.edu.nuc.crm.dto.PageInfo;
import cn.edu.nuc.crm.entity.Account;


public interface AccountService {
	/**
	 * 登录
	 * @param accountname
	 * @param accountpassword
	 * @return
	 */
	Account login(String accountname, String accountpassword);
	/**
	 * 注册
	 * @param accountname
	 * @param accountpassword
	 * @return
	 */
	int register(Account account);
	/**
	 * 
	 * @param current
	 * @return
	 */
	PageInfo account(int current);
	
	List<Account> account();
	
	int insert(Account account);
	/**
	 * 
	 * @param accountname
	 * @return
	 */
	List<Account> selectByName(String accountname);
	/**
	 * 删除
	 * @param accountid
	 * @return
	 */
	int deleteByPrimaryKey(Integer accountid);
	
	int updateByPrimaryKeySelective(Account account);
	
	Account selectByPrimaryKey(int accountid );
	
	PageInfo account1(String accountname, int current);
	
	/*int checkaccountname(String accountname);*/

}
